package com.bestcem.xm.label.controller.v3.param;

import com.bestcem.xm.label.constant.Constants;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 新建标签组 Request
 *
 * @author zh.zhang <zh.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021-08-18
 */
@Getter
@Setter
@ToString
public class CreateLabelGroupRequest {
    /**
     * 企业ID
     */
    private String orgId;

    /**
     * 标签组联系人类型
     */
    private int attribute;

    /**
     * 标签组名称
     */
    @NotBlank(message = "新建标签组名不能为空！")
    @Size(max = Constants.TAG_GROUP_NAME_MAX_LEN, message = "新建标签组名长度不能超过30！")
    private String name;

    /**
     * 标签组显示序号
     */
    @NotNull(message = "标签组序号不存在！")
    private int serial;

}
